package com.yu8home.opcua;

import com.yu8home.opcua.tree.KepItem;
import lombok.extern.slf4j.Slf4j;

import java.util.ArrayList;
import java.util.List;

@Slf4j
public class BrowseNodeTree {

    public static void main(String[] args) throws Exception {
        OpcUAUtil.getConnect();

        List<KepItem> kepItemList = new ArrayList<>();

        long x = System.currentTimeMillis();
        OpcUAUtil.browseNodeTree(null, kepItemList);
        log.info("遍历节点树-耗时：{}", System.currentTimeMillis() - x);

        for (KepItem t : kepItemList) {
            log.info(t.toString());
        }
    }

}
